//
//  DateManager.m
//  任务列表练习
//
//  Created by apple on 15/9/16.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "DateManager.h"

static DateManager *dataManager = nil;

@implementation DateManager

+ (void)initialize
{
    static dispatch_once_t onceToken;
    
    dispatch_once(&onceToken,^{
        
        dataManager = [DateManager new];
    });
}

+ (instancetype)allocWithZone:(struct _NSZone *)zone
{
    if (dataManager == nil)
    {
        //用父类初始化
        
        dataManager = [super allocWithZone:zone];
    }
    return dataManager;
}

+ (instancetype)shareManager
{
    return dataManager;
}

@end
